var path = require("path");
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
    entry: "./src/index.js",
    output: {
        path: __dirname +"/build",
        filename: "bundle.js"
    },
    // configuration
    plugins: [
        new HtmlWebpackPlugin({
            title: 'My App',
            inject: false,
            template: require('html-webpack-template'),
            // Optional
            appMountId: 'app-root',
    })
    ],
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'babel',
                query: {
                    presets: ['es2015','react']
                }
            }
        ]
    }
};

